﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryDal
{
    /// <summary>
    /// 部门数据访问层接口
    /// </summary>
    public interface IDepartmentInfoDal : IBaseDal<DepartmentInfo>
    {
        /// <summary>
        /// 添加部门信息
        /// </summary>
        /// <returns></returns>
        //bool AddDepartmentInfo(DepartmentInfo DepartmentInfo);

        ///// <summary>
        ///// 删除部门信息
        ///// </summary>
        ///// <returns></returns>
        //bool DeleteDepartmentInfo(string departmentInfoId);

        /// <summary>
        /// 更新部门信息
        /// </summary>
        /// <param name="departmentInfo"></param>
        /// <returns></returns>
        bool UpdateDepartmentInfo(DepartmentInfo departmentInfo);

        /// <summary>
        /// 获取单个部门
        /// </summary>
        /// <param name="departmentInfoId"></param>
        /// <returns></returns>
        DepartmentInfo GetDepartmentInfo(string departmentInfoId);

        /// <summary>
        /// 获取部门集合
        /// </summary>
        /// <returns></returns>
        List<DepartmentInfo> GetDepartmentInfos();
    }
}
